package com.sims.action.manager;

import org.springframework.beans.factory.annotation.Autowired;

import com.sims.bean.Manager;
import com.sims.service.ManagerService;
import com.sims.util.ActionEnhanced;
import com.sims.util.Constant;

public class ModifyManagePasswordAction extends ActionEnhanced{
	private Manager manager;
	@Autowired
	private ManagerService managerService;
	public Manager getManager() {
		return manager;
	}
	public void setManager(Manager manager) {
		this.manager = manager;
	}
	@Override
	public String execute() {
		result = managerService.modifyManagePassword(manager);
		if (result.containsKey(Constant.SUCCESS)) {
			System.out.println("success");
			return SUCCESS;
		}
		return ERROR;
	}
}
